[INFO] cloning repository https://github.com/internet-of-plants/server
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/internet-of-plants/server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finternet-of-plants%2Fserver", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finternet-of-plants%2Fserver'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d05eff1265902544326a7d27a3ac008ec6c59a98
[INFO] checking internet-of-plants/server against master#d4be8efc6296bace5b1e165f1b34d3c6da76aa8e for pr-110141
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finternet-of-plants%2Fserver" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/internet-of-plants/server on toolchain d4be8efc6296bace5b1e165f1b34d3c6da76aa8e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/internet-of-plants/server
[INFO] finished tweaking git repo https://github.com/internet-of-plants/server
[INFO] tweaked toml for git repo https://github.com/internet-of-plants/server written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/internet-of-plants/server already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating git repository `https://github.com/paulocsanz/derive_get.git`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded blowfish v0.6.0
[INFO] [stderr]   Downloaded bcrypt v0.8.2
[INFO] [stderr]   Downloaded spin v0.9.7
[INFO] [stderr]   Downloaded rustix v0.37.4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 01db2612b81e45c142d9a5d6cdbcba93aeab5d3f32739a1a2d6064dbbfed78fe
[INFO] running `Command { std: "docker" "start" "-a" "01db2612b81e45c142d9a5d6cdbcba93aeab5d3f32739a1a2d6064dbbfed78fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "01db2612b81e45c142d9a5d6cdbcba93aeab5d3f32739a1a2d6064dbbfed78fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "01db2612b81e45c142d9a5d6cdbcba93aeab5d3f32739a1a2d6064dbbfed78fe", kill_on_drop: false }`
[INFO] [stdout] 01db2612b81e45c142d9a5d6cdbcba93aeab5d3f32739a1a2d6064dbbfed78fe
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+d4be8efc6296bace5b1e165f1b34d3c6da76aa8e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 848d29692e84a05c18da6ab1d6a32dfe78675109d25ed386bc9aef5f4932bba0
[INFO] running `Command { std: "docker" "start" "-a" "848d29692e84a05c18da6ab1d6a32dfe78675109d25ed386bc9aef5f4932bba0", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.140
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.54
[INFO] [stderr]    Compiling unicode-ident v1.0.8
[INFO] [stderr]    Compiling quote v1.0.26
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling pkg-config v0.3.26
[INFO] [stderr]    Compiling typenum v1.16.0
[INFO] [stderr]    Compiling lock_api v0.4.9
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]     Checking once_cell v1.17.1
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling futures-core v0.3.27
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.7
[INFO] [stderr]     Checking pin-project-lite v0.2.9
[INFO] [stderr]    Compiling tokio v1.27.0
[INFO] [stderr]    Compiling syn v2.0.11
[INFO] [stderr]     Checking bytes v1.4.0
[INFO] [stderr]     Checking smallvec v1.10.0
[INFO] [stderr]    Compiling slab v0.4.8
[INFO] [stderr]    Compiling futures-task v0.3.27
[INFO] [stderr]    Compiling futures-channel v0.3.27
[INFO] [stderr]    Compiling ahash v0.7.6
[INFO] [stderr]    Compiling futures-util v0.3.27
[INFO] [stderr]     Checking itoa v1.0.6
[INFO] [stderr]     Checking futures-sink v0.3.27
[INFO] [stderr]    Compiling jobserver v0.1.26
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]     Checking num_cpus v1.15.0
[INFO] [stderr]    Compiling cc v1.0.79
[INFO] [stderr]     Checking mio v0.8.6
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]     Checking socket2 v0.4.9
[INFO] [stderr]    Compiling serde_derive v1.0.159
[INFO] [stderr]     Checking getrandom v0.2.8
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]    Compiling serde v1.0.159
[INFO] [stderr]     Checking futures-io v0.3.27
[INFO] [stderr]    Compiling openssl v0.10.48
[INFO] [stderr]     Checking http v0.2.9
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling thiserror v1.0.40
[INFO] [stderr]     Checking tracing-core v0.1.30
[INFO] [stderr]    Compiling openssl-sys v0.9.83
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]     Checking hashbrown v0.12.3
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking subtle v2.4.1
[INFO] [stderr]     Checking digest v0.10.6
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling serde_json v1.0.95
[INFO] [stderr]    Compiling crossbeam-utils v0.8.15
[INFO] [stderr]     Checking tower-service v0.3.2
[INFO] [stderr]     Checking tinyvec_macros v0.1.1
[INFO] [stderr]     Checking tinyvec v1.6.0
[INFO] [stderr]     Checking http-body v0.4.5
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]     Checking openssl-probe v0.1.5
[INFO] [stderr]     Checking percent-encoding v2.2.0
[INFO] [stderr]     Checking form_urlencoded v1.1.0
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]     Checking unicode-normalization v0.1.22
[INFO] [stderr]    Compiling tokio-macros v2.0.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.40
[INFO] [stderr]    Compiling libz-sys v1.1.8
[INFO] [stderr]     Checking ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling crossbeam-queue v0.3.8
[INFO] [stderr]     Checking ryu v1.0.13
[INFO] [stderr]     Checking unicode-bidi v0.3.13
[INFO] [stderr]    Compiling openssl-macros v0.1.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.23
[INFO] [stderr]     Checking getrandom v0.1.16
[INFO] [stderr]    Compiling instant v0.1.12
[INFO] [stderr]     Checking try-lock v0.2.4
[INFO] [stderr]    Compiling paste v1.0.12
[INFO] [stderr]     Checking cpufeatures v0.2.6
[INFO] [stderr]     Checking httpdate v1.0.2
[INFO] [stderr]     Checking tracing v0.1.37
[INFO] [stderr]     Checking want v0.3.0
[INFO] [stderr]     Checking tokio-util v0.7.7
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking h2 v0.3.16
[INFO] [stderr]     Checking idna v0.3.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling libssh2-sys v0.2.23
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]     Checking tower-layer v0.3.2
[INFO] [stderr]     Checking mime v0.3.17
[INFO] [stderr]    Compiling either v1.8.1
[INFO] [stderr]    Compiling ucd-trie v0.1.5
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling pest v2.5.6
[INFO] [stderr]     Checking url v2.3.1
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]     Checking sha1 v0.10.5
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking hyper v0.14.25
[INFO] [stderr]    Compiling pin-project-internal v1.0.12
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling dirs-sys v0.3.7
[INFO] [stderr]    Compiling time v0.1.45
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling unicode_categories v0.1.1
[INFO] [stderr]    Compiling iana-time-zone v0.1.54
[INFO] [stderr]     Checking regex-syntax v0.6.29
[INFO] [stderr]    Compiling io-lifetimes v1.0.9
[INFO] [stderr]     Checking base64 v0.13.1
[INFO] [stderr]    Compiling rustls v0.20.8
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling async-trait v0.1.68
[INFO] [stderr]     Checking byteorder v1.4.3
[INFO] [stderr]    Compiling sqlformat v0.2.1
[INFO] [stderr]     Checking pin-project v1.0.12
[INFO] [stderr]    Compiling chrono v0.4.24
[INFO] [stderr]    Compiling dirs v4.0.0
[INFO] [stderr]    Compiling hkdf v0.12.3
[INFO] [stderr]    Compiling futures-intrusive v0.4.2
[INFO] [stderr]    Compiling pest_meta v2.5.6
[INFO] [stderr]    Compiling sqlx-rt v0.6.3
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling sha2 v0.10.6
[INFO] [stderr]    Compiling tokio-stream v0.1.12
[INFO] [stderr]    Compiling hashlink v0.8.1
[INFO] [stderr]     Checking sct v0.7.0
[INFO] [stderr]     Checking webpki v0.22.0
[INFO] [stderr]    Compiling stringprep v0.1.2
[INFO] [stderr]    Compiling atoi v1.0.0
[INFO] [stderr]    Compiling md-5 v0.10.5
[INFO] [stderr]    Compiling libgit2-sys v0.14.2+1.5.1
[INFO] [stderr]    Compiling multer v2.0.4
[INFO] [stderr]     Checking encoding_rs v0.8.32
[INFO] [stderr]    Compiling event-listener v2.5.3
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling rustix v0.37.4
[INFO] [stderr]    Compiling unicode-segmentation v1.10.1
[INFO] [stderr]    Compiling whoami v1.4.0
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]     Checking http-range-header v0.3.0
[INFO] [stderr]     Checking base64 v0.21.0
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]    Compiling sqlx-core v0.6.3
[INFO] [stderr]    Compiling pest_generator v2.5.6
[INFO] [stderr]     Checking regex-automata v0.1.10
[INFO] [stderr]     Checking tower v0.4.13
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking rand_pcg v0.2.1
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking headers-core v0.2.0
[INFO] [stderr]    Compiling backtrace v0.3.67
[INFO] [stderr]     Checking block-cipher v0.8.0
[INFO] [stderr]     Checking spin v0.9.7
[INFO] [stderr]     Checking adler v1.0.2
[INFO] [stderr]     Checking opaque-debug v0.3.0
[INFO] [stderr]     Checking gimli v0.27.2
[INFO] [stderr]     Checking overload v0.1.1
[INFO] [stderr]     Checking linux-raw-sys v0.3.0
[INFO] [stderr]     Checking nu-ansi-term v0.46.0
[INFO] [stderr]     Checking blowfish v0.6.0
[INFO] [stderr]     Checking tokio-rustls v0.23.4
[INFO] [stderr]     Checking miniz_oxide v0.6.2
[INFO] [stderr]     Checking headers v0.3.8
[INFO] [stderr]    Compiling pest_derive v2.5.6
[INFO] [stderr]     Checking axum-core v0.2.9
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking matchers v0.1.0
[INFO] [stderr]     Checking tower-http v0.3.5
[INFO] [stderr]     Checking rustls-pemfile v1.0.2
[INFO] [stderr]     Checking tracing-log v0.1.3
[INFO] [stderr]     Checking sharded-slab v0.1.4
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking regex v1.7.3
[INFO] [stderr]     Checking object v0.30.3
[INFO] [stderr]     Checking addr2line v0.19.0
[INFO] [stderr]     Checking thread_local v1.1.7
[INFO] [stderr]     Checking arc-swap v1.6.0
[INFO] [stderr]     Checking fastrand v1.9.0
[INFO] [stderr]     Checking matchit v0.5.0
[INFO] [stderr]     Checking rustc-demangle v0.1.22
[INFO] [stderr]     Checking base64 v0.12.3
[INFO] [stderr]    Compiling convert_case v0.4.0
[INFO] [stderr]     Checking ipnet v2.7.2
[INFO] [stderr]     Checking sync_wrapper v0.1.2
[INFO] [stderr]     Checking axum v0.5.17
[INFO] [stderr]     Checking bcrypt v0.8.2
[INFO] [stderr]     Checking axum-server v0.4.7
[INFO] [stderr]     Checking reqwest v0.11.16
[INFO] [stderr]     Checking tempfile v3.5.0
[INFO] [stderr]     Checking tracing-subscriber v0.3.16
[INFO] [stderr]    Compiling derive_more v0.99.17
[INFO] [stderr]     Checking random_color v0.6.1
[INFO] [stderr]     Checking handlebars v4.3.6
[INFO] [stderr]    Compiling derive_get v0.1.0 (https://github.com/paulocsanz/derive_get.git#b8f361c5)
[INFO] [stderr]    Compiling derive v0.1.0 (/opt/rustwide/workdir/derive)
[INFO] [stderr]     Checking tower-http v0.2.5
[INFO] [stderr]    Compiling async-recursion v1.0.4
[INFO] [stderr]     Checking futures v0.3.27
[INFO] [stderr]     Checking md5 v0.7.0
[INFO] [stderr]    Compiling sqlx-macros v0.6.3
[INFO] [stderr]     Checking sqlx v0.6.3
[INFO] [stderr]     Checking git2 v0.16.1
[INFO] [stderr]     Checking server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]   --> tests/collection.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 |         Login {
[INFO] [stdout]    |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]   --> tests/device_log.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |         Login {
[INFO] [stdout]    |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]   --> tests/device_log.rs:33:30
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let device_id1 = orgs[0].collections[0].devices[0].id();
[INFO] [stdout]    |                              ^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let device_id1 = orgs[0].collections()[0].devices[0].id();
[INFO] [stdout]    |                                         ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]   --> tests/collection.rs:32:24
[INFO] [stdout]    |
[INFO] [stdout] 32 |     assert_eq!(orgs[0].collections.len(), 1);
[INFO] [stdout]    |                        ^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 32 |     assert_eq!(orgs[0].collections().len(), 1);
[INFO] [stdout]    |                                   ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0451]: field `email` of struct `NewUser` is private
[INFO] [stdout]   --> tests/sensor_prototype.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 |             email: "bobão10@example.com".to_owned(),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0451]: field `username` of struct `NewUser` is private
[INFO] [stdout]   --> tests/sensor_prototype.rs:12:13
[INFO] [stdout]    |
[INFO] [stdout] 12 |             username: "bobão10".to_owned(),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0451]: field `password` of struct `NewUser` is private
[INFO] [stdout]   --> tests/sensor_prototype.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |             password: "bobão1234".to_owned(),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0451]: field `organization_name` of struct `NewUser` is private
[INFO] [stdout]   --> tests/sensor_prototype.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |             organization_name: "bobão10".to_owned(),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]   --> tests/collection.rs:33:30
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let collection = orgs[0].collections.iter().next().unwrap();
[INFO] [stdout]    |                              ^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let collection = orgs[0].collections().iter().next().unwrap();
[INFO] [stdout]    |                                         ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0451`.
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `CollectionView` is private
[INFO] [stdout]   --> tests/collection.rs:36:20
[INFO] [stdout]    |
[INFO] [stdout] 36 |     assert_eq!(col.id, collection.id);
[INFO] [stdout]    |                    ^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 36 |     assert_eq!(col.id(), collection.id);
[INFO] [stdout]    |                      ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `server` (test "sensor_prototype") due to 5 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]   --> tests/device_log.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 |         Login {
[INFO] [stdout]    |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]   --> tests/device_log.rs:68:29
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let device_id = orgs[0].collections[0].devices[0].id();
[INFO] [stdout]    |                             ^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let device_id = orgs[0].collections()[0].devices[0].id();
[INFO] [stdout]    |                                        ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0063, E0616.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0063`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `server` (test "collection") due to 5 previous errors
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]   --> tests/compiler.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |         Login {
[INFO] [stdout]    |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]   --> tests/compiler.rs:54:30
[INFO] [stdout]    |
[INFO] [stdout] 54 |     let device_id1 = orgs[0].collections[0].devices[0].id();
[INFO] [stdout]    |                              ^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 54 |     let device_id1 = orgs[0].collections()[0].devices[0].id();
[INFO] [stdout]    |                                         ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]   --> tests/compiler.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 |         Login {
[INFO] [stdout]    |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]   --> tests/compiler.rs:68:29
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let device_id = orgs[0].collections[0].devices[0].id();
[INFO] [stdout]    |                             ^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let device_id = orgs[0].collections()[0].devices[0].id();
[INFO] [stdout]    |                                        ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `SensorPrototypeView` is private
[INFO] [stdout]   --> tests/compiler.rs:73:44
[INFO] [stdout]    |
[INFO] [stdout] 73 |         prototype_id: sensor_prototypes[0].id,
[INFO] [stdout]    |                                            ^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 73 |         prototype_id: sensor_prototypes[0].id(),
[INFO] [stdout]    |                                              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewSensor` with struct literal syntax due to private fields
[INFO] [stdout]   --> tests/compiler.rs:72:27
[INFO] [stdout]    |
[INFO] [stdout] 72 |     let mut new_sensor1 = NewSensor {
[INFO] [stdout]    |                           ^^^^^^^^^
[INFO] [stdout] 73 |         prototype_id: sensor_prototypes[0].id,
[INFO] [stdout]    |         ------------------------------------- private field
[INFO] [stdout] 74 |         alias: "Sensor 1".to_owned(),
[INFO] [stdout]    |         ---------------------------- private field
[INFO] [stdout] 75 |         configs: Vec::new(),
[INFO] [stdout]    |         ------------------- private field
[INFO] [stdout]    |
[INFO] [stdout]    = note: ... and other private field `local_pk` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `SensorPrototypeView` is private
[INFO] [stdout]   --> tests/compiler.rs:77:42
[INFO] [stdout]    |
[INFO] [stdout] 77 |     for request in &sensor_prototypes[0].configuration_requests {
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 77 |     for request in &sensor_prototypes[0].configuration_requests() {
[INFO] [stdout]    |                                                                ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configs` of struct `NewSensor` is private
[INFO] [stdout]   --> tests/compiler.rs:82:21
[INFO] [stdout]    |
[INFO] [stdout] 82 |         new_sensor1.configs.push(NewSensorConfig {
[INFO] [stdout]    |                     ^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `configs` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 82 |         new_sensor1.configs().push(NewSensorConfig {
[INFO] [stdout]    |                            ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0451]: field `email` of struct `NewUser` is private
[INFO] [stdout]   --> tests/target.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 |             email: "bobão11@example.com".to_owned(),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0451]: field `organization_name` of struct `NewUser` is private
[INFO] [stdout]   --> tests/target.rs:12:13
[INFO] [stdout]    |
[INFO] [stdout] 12 |             organization_name: "bobão11".to_owned(),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0451]: field `username` of struct `NewUser` is private
[INFO] [stdout]   --> tests/target.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |             username: "bobão11".to_owned(),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0451]: field `password` of struct `NewUser` is private
[INFO] [stdout]   --> tests/target.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |             password: "bobão1234".to_owned(),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `0` of struct `AuthToken` is private
[INFO] [stdout]   --> tests/device_log.rs:81:68
[INFO] [stdout]    |
[INFO] [stdout] 81 |                 .header("Authorization", format!("Basic {}", token.0))
[INFO] [stdout]    |                                                                    ^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]   --> tests/sensor.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 30 |         Login {
[INFO] [stdout]    |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]   --> tests/sensor.rs:52:9
[INFO] [stdout]    |
[INFO] [stdout] 52 |         Login {
[INFO] [stdout]    |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]   --> tests/sensor.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |         Login {
[INFO] [stdout]    |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]   --> tests/sensor.rs:73:29
[INFO] [stdout]    |
[INFO] [stdout] 73 |     let device_id = orgs[0].collections[0].devices[0].id();
[INFO] [stdout]    |                             ^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 73 |     let device_id = orgs[0].collections()[0].devices[0].id();
[INFO] [stdout]    |                                        ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]   --> tests/sensor.rs:74:30
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let device_id1 = orgs[0].collections[1].devices[0].id();
[INFO] [stdout]    |                              ^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let device_id1 = orgs[0].collections()[1].devices[0].id();
[INFO] [stdout]    |                                         ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `0` of struct `AuthToken` is private
[INFO] [stdout]   --> tests/device_log.rs:98:68
[INFO] [stdout]    |
[INFO] [stdout] 98 |                 .header("Authorization", format!("Basic {}", token.0))
[INFO] [stdout]    |                                                                    ^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0451`.
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `0` of struct `AuthToken` is private
[INFO] [stdout]    --> tests/device_log.rs:115:75
[INFO] [stdout]     |
[INFO] [stdout] 115 |                 .header("Authorization", format!("Basic {}", token_device.0))
[INFO] [stdout]     |                                                                           ^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `SensorPrototypeView` is private
[INFO] [stdout]   --> tests/sensor.rs:79:44
[INFO] [stdout]    |
[INFO] [stdout] 79 |         prototype_id: sensor_prototypes[0].id,
[INFO] [stdout]    |                                            ^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 79 |         prototype_id: sensor_prototypes[0].id(),
[INFO] [stdout]    |                                              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewSensor` with struct literal syntax due to private fields
[INFO] [stdout]   --> tests/sensor.rs:78:27
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let mut new_sensor1 = NewSensor {
[INFO] [stdout]    |                           ^^^^^^^^^
[INFO] [stdout] 79 |         prototype_id: sensor_prototypes[0].id,
[INFO] [stdout]    |         ------------------------------------- private field
[INFO] [stdout] 80 |         alias: "Sensor 1".to_owned(),
[INFO] [stdout]    |         ---------------------------- private field
[INFO] [stdout] 81 |         configs: Vec::new(),
[INFO] [stdout]    |         ------------------- private field
[INFO] [stdout]    |
[INFO] [stdout]    = note: ... and other private field `local_pk` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `SensorPrototypeView` is private
[INFO] [stdout]   --> tests/sensor.rs:83:42
[INFO] [stdout]    |
[INFO] [stdout] 83 |     for request in &sensor_prototypes[0].configuration_requests {
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 83 |     for request in &sensor_prototypes[0].configuration_requests() {
[INFO] [stdout]    |                                                                ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configs` of struct `NewSensor` is private
[INFO] [stdout]   --> tests/sensor.rs:88:21
[INFO] [stdout]    |
[INFO] [stdout] 88 |         new_sensor1.configs.push(NewSensorConfig {
[INFO] [stdout]    |                     ^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `configs` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 88 |         new_sensor1.configs().push(NewSensorConfig {
[INFO] [stdout]    |                            ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `0` of struct `AuthToken` is private
[INFO] [stdout]    --> tests/device_log.rs:130:68
[INFO] [stdout]     |
[INFO] [stdout] 130 |                 .header("Authorization", format!("Basic {}", token.0))
[INFO] [stdout]     |                                                                    ^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `server` (test "target") due to 5 previous errors
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `OrganizationView` is private
[INFO] [stdout]   --> tests/organization.rs:23:20
[INFO] [stdout]    |
[INFO] [stdout] 23 |     assert_eq!(org.id, orgs[0].id());
[INFO] [stdout]    |                    ^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 23 |     assert_eq!(org.id(), orgs[0].id());
[INFO] [stdout]    |                      ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0063, E0616.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0063`.
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0616`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `server` (test "device_log") due to 9 previous errors
[INFO] [stderr] error: could not compile `server` (test "organization") due to 2 previous errors
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> tests/sensor.rs:90:13
[INFO] [stdout]    |
[INFO] [stdout] 90 |             value,
[INFO] [stdout]    |             ^^^^^ expected `ValRaw`, found `String`
[INFO] [stdout]    |
[INFO] [stdout] help: try wrapping the expression in `server::ValRaw::String`
[INFO] [stdout]    |
[INFO] [stdout] 90 |             value: server::ValRaw::String(value),
[INFO] [stdout]    |             ++++++++++++++++++++++++++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `SensorPrototypeView` is private
[INFO] [stdout]   --> tests/sensor.rs:95:44
[INFO] [stdout]    |
[INFO] [stdout] 95 |         prototype_id: sensor_prototypes[1].id,
[INFO] [stdout]    |                                            ^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 95 |         prototype_id: sensor_prototypes[1].id(),
[INFO] [stdout]    |                                              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewSensor` with struct literal syntax due to private fields
[INFO] [stdout]   --> tests/sensor.rs:94:27
[INFO] [stdout]    |
[INFO] [stdout] 94 |     let mut new_sensor2 = NewSensor {
[INFO] [stdout]    |                           ^^^^^^^^^
[INFO] [stdout] 95 |         prototype_id: sensor_prototypes[1].id,
[INFO] [stdout]    |         ------------------------------------- private field
[INFO] [stdout] 96 |         alias: "Sensor 2".to_owned(),
[INFO] [stdout]    |         ---------------------------- private field
[INFO] [stdout] 97 |         configs: Vec::new(),
[INFO] [stdout]    |         ------------------- private field
[INFO] [stdout]    |
[INFO] [stdout]    = note: ... and other private field `local_pk` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `SensorPrototypeView` is private
[INFO] [stdout]   --> tests/sensor.rs:99:42
[INFO] [stdout]    |
[INFO] [stdout] 99 |     for request in &sensor_prototypes[1].configuration_requests {
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 99 |     for request in &sensor_prototypes[1].configuration_requests() {
[INFO] [stdout]    |                                                                ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> tests/compiler.rs:84:13
[INFO] [stdout]    |
[INFO] [stdout] 84 |             value,
[INFO] [stdout]    |             ^^^^^ expected `ValRaw`, found `String`
[INFO] [stdout]    |
[INFO] [stdout] help: try wrapping the expression in `server::ValRaw::String`
[INFO] [stdout]    |
[INFO] [stdout] 84 |             value: server::ValRaw::String(value),
[INFO] [stdout]    |             ++++++++++++++++++++++++++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `SensorPrototypeView` is private
[INFO] [stdout]   --> tests/compiler.rs:89:44
[INFO] [stdout]    |
[INFO] [stdout] 89 |         prototype_id: sensor_prototypes[1].id,
[INFO] [stdout]    |                                            ^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 89 |         prototype_id: sensor_prototypes[1].id(),
[INFO] [stdout]    |                                              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewSensor` with struct literal syntax due to private fields
[INFO] [stdout]   --> tests/compiler.rs:88:27
[INFO] [stdout]    |
[INFO] [stdout] 88 |     let mut new_sensor2 = NewSensor {
[INFO] [stdout]    |                           ^^^^^^^^^
[INFO] [stdout] 89 |         prototype_id: sensor_prototypes[1].id,
[INFO] [stdout]    |         ------------------------------------- private field
[INFO] [stdout] 90 |         alias: "Sensor 2".to_owned(),
[INFO] [stdout]    |         ---------------------------- private field
[INFO] [stdout] 91 |         configs: Vec::new(),
[INFO] [stdout]    |         ------------------- private field
[INFO] [stdout]    |
[INFO] [stdout]    = note: ... and other private field `local_pk` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `SensorPrototypeView` is private
[INFO] [stdout]   --> tests/compiler.rs:93:42
[INFO] [stdout]    |
[INFO] [stdout] 93 |     for request in &sensor_prototypes[1].configuration_requests {
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 93 |     for request in &sensor_prototypes[1].configuration_requests() {
[INFO] [stdout]    |                                                                ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configs` of struct `NewSensor` is private
[INFO] [stdout]   --> tests/compiler.rs:98:21
[INFO] [stdout]    |
[INFO] [stdout] 98 |         new_sensor2.configs.push(NewSensorConfig {
[INFO] [stdout]    |                     ^^^^^^^ private field
[INFO] [stdout]    |
[INFO] [stdout] help: a method `configs` also exists, call it with parentheses
[INFO] [stdout]    |
[INFO] [stdout] 98 |         new_sensor2.configs().push(NewSensorConfig {
[INFO] [stdout]    |                            ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configs` of struct `NewSensor` is private
[INFO] [stdout]    --> tests/sensor.rs:104:21
[INFO] [stdout]     |
[INFO] [stdout] 104 |         new_sensor2.configs.push(NewSensorConfig {
[INFO] [stdout]     |                     ^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configs` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 104 |         new_sensor2.configs().push(NewSensorConfig {
[INFO] [stdout]     |                            ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> tests/compiler.rs:100:13
[INFO] [stdout]     |
[INFO] [stdout] 100 |             value,
[INFO] [stdout]     |             ^^^^^ expected `ValRaw`, found `String`
[INFO] [stdout]     |
[INFO] [stdout] help: try wrapping the expression in `server::ValRaw::String`
[INFO] [stdout]     |
[INFO] [stdout] 100 |             value: server::ValRaw::String(value),
[INFO] [stdout]     |             ++++++++++++++++++++++++++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `SensorPrototypeView` is private
[INFO] [stdout]    --> tests/compiler.rs:105:44
[INFO] [stdout]     |
[INFO] [stdout] 105 |         prototype_id: sensor_prototypes[2].id,
[INFO] [stdout]     |                                            ^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 105 |         prototype_id: sensor_prototypes[2].id(),
[INFO] [stdout]     |                                              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewSensor` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/compiler.rs:104:27
[INFO] [stdout]     |
[INFO] [stdout] 104 |     let mut new_sensor3 = NewSensor {
[INFO] [stdout]     |                           ^^^^^^^^^
[INFO] [stdout] 105 |         prototype_id: sensor_prototypes[2].id,
[INFO] [stdout]     |         ------------------------------------- private field
[INFO] [stdout] 106 |         alias: "Sensor 3".to_owned(),
[INFO] [stdout]     |         ---------------------------- private field
[INFO] [stdout] 107 |         configs: Vec::new(),
[INFO] [stdout]     |         ------------------- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `local_pk` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `SensorPrototypeView` is private
[INFO] [stdout]    --> tests/compiler.rs:109:42
[INFO] [stdout]     |
[INFO] [stdout] 109 |     for request in &sensor_prototypes[2].configuration_requests {
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 109 |     for request in &sensor_prototypes[2].configuration_requests() {
[INFO] [stdout]     |                                                                ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configs` of struct `NewSensor` is private
[INFO] [stdout]    --> tests/compiler.rs:114:21
[INFO] [stdout]     |
[INFO] [stdout] 114 |         new_sensor3.configs.push(NewSensorConfig {
[INFO] [stdout]     |                     ^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configs` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 114 |         new_sensor3.configs().push(NewSensorConfig {
[INFO] [stdout]     |                            ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> tests/sensor.rs:106:13
[INFO] [stdout]     |
[INFO] [stdout] 106 |             value,
[INFO] [stdout]     |             ^^^^^ expected `ValRaw`, found `String`
[INFO] [stdout]     |
[INFO] [stdout] help: try wrapping the expression in `server::ValRaw::String`
[INFO] [stdout]     |
[INFO] [stdout] 106 |             value: server::ValRaw::String(value),
[INFO] [stdout]     |             ++++++++++++++++++++++++++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `SensorPrototypeView` is private
[INFO] [stdout]    --> tests/sensor.rs:111:44
[INFO] [stdout]     |
[INFO] [stdout] 111 |         prototype_id: sensor_prototypes[2].id,
[INFO] [stdout]     |                                            ^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 111 |         prototype_id: sensor_prototypes[2].id(),
[INFO] [stdout]     |                                              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewSensor` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/sensor.rs:110:27
[INFO] [stdout]     |
[INFO] [stdout] 110 |     let mut new_sensor3 = NewSensor {
[INFO] [stdout]     |                           ^^^^^^^^^
[INFO] [stdout] 111 |         prototype_id: sensor_prototypes[2].id,
[INFO] [stdout]     |         ------------------------------------- private field
[INFO] [stdout] 112 |         alias: "Sensor 3".to_owned(),
[INFO] [stdout]     |         ---------------------------- private field
[INFO] [stdout] 113 |         configs: Vec::new(),
[INFO] [stdout]     |         ------------------- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `local_pk` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `SensorPrototypeView` is private
[INFO] [stdout]    --> tests/sensor.rs:115:42
[INFO] [stdout]     |
[INFO] [stdout] 115 |     for request in &sensor_prototypes[2].configuration_requests {
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 115 |     for request in &sensor_prototypes[2].configuration_requests() {
[INFO] [stdout]     |                                                                ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> tests/compiler.rs:116:13
[INFO] [stdout]     |
[INFO] [stdout] 116 |             value,
[INFO] [stdout]     |             ^^^^^ expected `ValRaw`, found `String`
[INFO] [stdout]     |
[INFO] [stdout] help: try wrapping the expression in `server::ValRaw::String`
[INFO] [stdout]     |
[INFO] [stdout] 116 |             value: server::ValRaw::String(value),
[INFO] [stdout]     |             ++++++++++++++++++++++++++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `TargetView` is private
[INFO] [stdout]    --> tests/compiler.rs:121:32
[INFO] [stdout]     |
[INFO] [stdout] 121 |     for request in &targets[0].configuration_requests {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 121 |     for request in &targets[0].configuration_requests() {
[INFO] [stdout]     |                                                      ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewCompiler` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/compiler.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |           NewCompiler {
[INFO] [stdout]     |           ^^^^^^^^^^^
[INFO] [stdout] 136 |               device_id,
[INFO] [stdout]     |               --------- private field
[INFO] [stdout] 137 |               target_id: targets[0].id(),
[INFO] [stdout]     |               -------------------------- private field
[INFO] [stdout] 138 |               device_configs: device_configs.clone(),
[INFO] [stdout]     |               -------------------------------------- private field
[INFO] [stdout] 139 | /             sensors: vec![
[INFO] [stdout] 140 | |                 new_sensor1.clone(),
[INFO] [stdout] 141 | |                 new_sensor2.clone(),
[INFO] [stdout] 142 | |                 new_sensor3.clone(),
[INFO] [stdout] 143 | |             ],
[INFO] [stdout]     | |_____________- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `collection_id` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configs` of struct `NewSensor` is private
[INFO] [stdout]    --> tests/sensor.rs:120:21
[INFO] [stdout]     |
[INFO] [stdout] 120 |         new_sensor3.configs.push(NewSensorConfig {
[INFO] [stdout]     |                     ^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configs` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 120 |         new_sensor3.configs().push(NewSensorConfig {
[INFO] [stdout]     |                            ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewCompiler` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/compiler.rs:151:9
[INFO] [stdout]     |
[INFO] [stdout] 151 |           NewCompiler {
[INFO] [stdout]     |           ^^^^^^^^^^^
[INFO] [stdout] 152 |               device_id,
[INFO] [stdout]     |               --------- private field
[INFO] [stdout] 153 |               target_id: targets[0].id(),
[INFO] [stdout]     |               -------------------------- private field
[INFO] [stdout] 154 |               device_configs: device_configs.clone(),
[INFO] [stdout]     |               -------------------------------------- private field
[INFO] [stdout] 155 | /             sensors: vec![
[INFO] [stdout] 156 | |                 new_sensor1.clone(),
[INFO] [stdout] 157 | |                 new_sensor2.clone(),
[INFO] [stdout] 158 | |                 new_sensor3.clone(),
[INFO] [stdout] 159 | |             ],
[INFO] [stdout]     | |_____________- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `collection_id` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `platformio_ini` of struct `CompilationView` is private
[INFO] [stdout]    --> tests/compiler.rs:165:32
[INFO] [stdout]     |
[INFO] [stdout] 165 |     println!("{}", compilation.platformio_ini);
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `platformio_ini` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 165 |     println!("{}", compilation.platformio_ini());
[INFO] [stdout]     |                                              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `main_cpp` of struct `CompilationView` is private
[INFO] [stdout]    --> tests/compiler.rs:166:32
[INFO] [stdout]     |
[INFO] [stdout] 166 |     println!("{}", compilation.main_cpp);
[INFO] [stdout]     |                                ^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `main_cpp` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 166 |     println!("{}", compilation.main_cpp());
[INFO] [stdout]     |                                        ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `pin_hpp` of struct `CompilationView` is private
[INFO] [stdout]    --> tests/compiler.rs:167:32
[INFO] [stdout]     |
[INFO] [stdout] 167 |     println!("{}", compilation.pin_hpp);
[INFO] [stdout]     |                                ^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `pin_hpp` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 167 |     println!("{}", compilation.pin_hpp());
[INFO] [stdout]     |                                       ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `value` of struct `NewDeviceConfig` is private
[INFO] [stdout]    --> tests/compiler.rs:170:23
[INFO] [stdout]     |
[INFO] [stdout] 170 |     device_configs[0].value = "my-new-ssid".to_owned();
[INFO] [stdout]     |                       ^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewCompiler` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/compiler.rs:174:9
[INFO] [stdout]     |
[INFO] [stdout] 174 |           NewCompiler {
[INFO] [stdout]     |           ^^^^^^^^^^^
[INFO] [stdout] 175 |               device_id,
[INFO] [stdout]     |               --------- private field
[INFO] [stdout] 176 |               target_id: targets[0].id(),
[INFO] [stdout]     |               -------------------------- private field
[INFO] [stdout] 177 |               device_configs: device_configs.clone(),
[INFO] [stdout]     |               -------------------------------------- private field
[INFO] [stdout] 178 | /             sensors: vec![
[INFO] [stdout] 179 | |                 new_sensor1.clone(),
[INFO] [stdout] 180 | |                 new_sensor2.clone(),
[INFO] [stdout] 181 | |                 new_sensor3.clone(),
[INFO] [stdout] 182 | |             ],
[INFO] [stdout]     | |_____________- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `collection_id` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `0` of struct `AuthToken` is private
[INFO] [stdout]    --> tests/compiler.rs:193:68
[INFO] [stdout]     |
[INFO] [stdout] 193 |                 .header("Authorization", format!("Basic {}", token.0))
[INFO] [stdout]     |                                                                    ^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> tests/sensor.rs:122:13
[INFO] [stdout]     |
[INFO] [stdout] 122 |             value,
[INFO] [stdout]     |             ^^^^^ expected `ValRaw`, found `String`
[INFO] [stdout]     |
[INFO] [stdout] help: try wrapping the expression in `server::ValRaw::String`
[INFO] [stdout]     |
[INFO] [stdout] 122 |             value: server::ValRaw::String(value),
[INFO] [stdout]     |             ++++++++++++++++++++++++++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewCompiler` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/compiler.rs:197:41
[INFO] [stdout]     |
[INFO] [stdout] 197 |                     serde_json::to_vec(&NewCompiler {
[INFO] [stdout]     |                                         ^^^^^^^^^^^
[INFO] [stdout] 198 |                         device_id: device_id1,
[INFO] [stdout]     |                         --------------------- private field
[INFO] [stdout] 199 |                         target_id: targets[0].id(),
[INFO] [stdout]     |                         -------------------------- private field
[INFO] [stdout] 200 |                         device_configs,
[INFO] [stdout]     |                         -------------- private field
[INFO] [stdout] 201 |                         sensors: vec![new_sensor1, new_sensor2, new_sensor3],
[INFO] [stdout]     |                         ---------------------------------------------------- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `collection_id` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `TargetView` is private
[INFO] [stdout]    --> tests/sensor.rs:127:32
[INFO] [stdout]     |
[INFO] [stdout] 127 |     for request in &targets[0].configuration_requests {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 127 |     for request in &targets[0].configuration_requests() {
[INFO] [stdout]     |                                                      ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewCompiler` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/sensor.rs:141:9
[INFO] [stdout]     |
[INFO] [stdout] 141 |           NewCompiler {
[INFO] [stdout]     |           ^^^^^^^^^^^
[INFO] [stdout] 142 |               device_id,
[INFO] [stdout]     |               --------- private field
[INFO] [stdout] 143 |               target_id: targets[0].id(),
[INFO] [stdout]     |               -------------------------- private field
[INFO] [stdout] 144 |               device_configs: device_configs.clone(),
[INFO] [stdout]     |               -------------------------------------- private field
[INFO] [stdout] 145 | /             sensors: vec![
[INFO] [stdout] 146 | |                 new_sensor1.clone(),
[INFO] [stdout] 147 | |                 new_sensor2.clone(),
[INFO] [stdout] 148 | |                 new_sensor3.clone(),
[INFO] [stdout] 149 | |             ],
[INFO] [stdout]     | |_____________- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `collection_id` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `SetAliasRequest` has no field named `device_id`
[INFO] [stdout]    --> tests/sensor.rs:158:13
[INFO] [stdout]     |
[INFO] [stdout] 158 |             device_id,
[INFO] [stdout]     |             ^^^^^^^^^ `SetAliasRequest` does not have this field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `compiler` on type `CompilationView`
[INFO] [stdout]    --> tests/sensor.rs:159:36
[INFO] [stdout]     |
[INFO] [stdout] 159 |             sensor_id: compilation.compiler.sensors[0].id,
[INFO] [stdout]     |                                    ^^^^^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 29 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]    --> tests/sensor.rs:166:25
[INFO] [stdout]     |
[INFO] [stdout] 166 |     let alias = orgs[0].collections[0].devices[0]
[INFO] [stdout]     |                         ^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 166 |     let alias = orgs[0].collections()[0].devices[0]
[INFO] [stdout]     |                                    ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0063, E0308, E0616.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0063`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `server` (test "compiler") due to 30 previous errors
[INFO] [stdout] error[E0616]: field `0` of struct `AuthToken` is private
[INFO] [stdout]    --> tests/sensor.rs:180:68
[INFO] [stdout]     |
[INFO] [stdout] 180 |                 .header("Authorization", format!("Basic {}", token.0))
[INFO] [stdout]     |                                                                    ^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `SetAliasRequest` has no field named `device_id`
[INFO] [stdout]    --> tests/sensor.rs:185:25
[INFO] [stdout]     |
[INFO] [stdout] 185 |                         device_id: device_id1,
[INFO] [stdout]     |                         ^^^^^^^^^ `SetAliasRequest` does not have this field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `compiler` on type `CompilationView`
[INFO] [stdout]    --> tests/sensor.rs:186:48
[INFO] [stdout]     |
[INFO] [stdout] 186 |                         sensor_id: compilation.compiler.sensors[0].id,
[INFO] [stdout]     |                                                ^^^^^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `0` of struct `AuthToken` is private
[INFO] [stdout]    --> tests/sensor.rs:202:74
[INFO] [stdout]     |
[INFO] [stdout] 202 |                 .header("Authorization", format!("Basic {}", other_token.0))
[INFO] [stdout]     |                                                                          ^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `SetAliasRequest` has no field named `device_id`
[INFO] [stdout]    --> tests/sensor.rs:207:25
[INFO] [stdout]     |
[INFO] [stdout] 207 |                         device_id,
[INFO] [stdout]     |                         ^^^^^^^^^ `SetAliasRequest` does not have this field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `compiler` on type `CompilationView`
[INFO] [stdout]    --> tests/sensor.rs:208:48
[INFO] [stdout]     |
[INFO] [stdout] 208 |                         sensor_id: compilation.compiler.sensors[0].id,
[INFO] [stdout]     |                                                ^^^^^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]    --> tests/sensor.rs:237:9
[INFO] [stdout]     |
[INFO] [stdout] 237 |         Login {
[INFO] [stdout]     |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]    --> tests/sensor.rs:259:9
[INFO] [stdout]     |
[INFO] [stdout] 259 |         Login {
[INFO] [stdout]     |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `organization` in initializer of `Login`
[INFO] [stdout]    --> tests/sensor.rs:270:9
[INFO] [stdout]     |
[INFO] [stdout] 270 |         Login {
[INFO] [stdout]     |         ^^^^^ missing `organization`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]    --> tests/sensor.rs:280:29
[INFO] [stdout]     |
[INFO] [stdout] 280 |     let device_id = orgs[0].collections[0].devices[0].id();
[INFO] [stdout]     |                             ^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 280 |     let device_id = orgs[0].collections()[0].devices[0].id();
[INFO] [stdout]     |                                        ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]    --> tests/sensor.rs:281:30
[INFO] [stdout]     |
[INFO] [stdout] 281 |     let device_id1 = orgs[0].collections[1].devices[0].id();
[INFO] [stdout]     |                              ^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 281 |     let device_id1 = orgs[0].collections()[1].devices[0].id();
[INFO] [stdout]     |                                         ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `SensorPrototypeView` is private
[INFO] [stdout]    --> tests/sensor.rs:286:44
[INFO] [stdout]     |
[INFO] [stdout] 286 |         prototype_id: sensor_prototypes[0].id,
[INFO] [stdout]     |                                            ^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 286 |         prototype_id: sensor_prototypes[0].id(),
[INFO] [stdout]     |                                              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewSensor` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/sensor.rs:285:27
[INFO] [stdout]     |
[INFO] [stdout] 285 |     let mut new_sensor1 = NewSensor {
[INFO] [stdout]     |                           ^^^^^^^^^
[INFO] [stdout] 286 |         prototype_id: sensor_prototypes[0].id,
[INFO] [stdout]     |         ------------------------------------- private field
[INFO] [stdout] 287 |         alias: "Sensor 1".to_owned(),
[INFO] [stdout]     |         ---------------------------- private field
[INFO] [stdout] 288 |         configs: Vec::new(),
[INFO] [stdout]     |         ------------------- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `local_pk` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `SensorPrototypeView` is private
[INFO] [stdout]    --> tests/sensor.rs:290:42
[INFO] [stdout]     |
[INFO] [stdout] 290 |     for request in &sensor_prototypes[0].configuration_requests {
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 290 |     for request in &sensor_prototypes[0].configuration_requests() {
[INFO] [stdout]     |                                                                ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configs` of struct `NewSensor` is private
[INFO] [stdout]    --> tests/sensor.rs:295:21
[INFO] [stdout]     |
[INFO] [stdout] 295 |         new_sensor1.configs.push(NewSensorConfig {
[INFO] [stdout]     |                     ^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configs` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 295 |         new_sensor1.configs().push(NewSensorConfig {
[INFO] [stdout]     |                            ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> tests/sensor.rs:297:13
[INFO] [stdout]     |
[INFO] [stdout] 297 |             value,
[INFO] [stdout]     |             ^^^^^ expected `ValRaw`, found `String`
[INFO] [stdout]     |
[INFO] [stdout] help: try wrapping the expression in `server::ValRaw::String`
[INFO] [stdout]     |
[INFO] [stdout] 297 |             value: server::ValRaw::String(value),
[INFO] [stdout]     |             ++++++++++++++++++++++++++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `SensorPrototypeView` is private
[INFO] [stdout]    --> tests/sensor.rs:302:44
[INFO] [stdout]     |
[INFO] [stdout] 302 |         prototype_id: sensor_prototypes[1].id,
[INFO] [stdout]     |                                            ^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 302 |         prototype_id: sensor_prototypes[1].id(),
[INFO] [stdout]     |                                              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewSensor` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/sensor.rs:301:27
[INFO] [stdout]     |
[INFO] [stdout] 301 |     let mut new_sensor2 = NewSensor {
[INFO] [stdout]     |                           ^^^^^^^^^
[INFO] [stdout] 302 |         prototype_id: sensor_prototypes[1].id,
[INFO] [stdout]     |         ------------------------------------- private field
[INFO] [stdout] 303 |         alias: "Sensor 2".to_owned(),
[INFO] [stdout]     |         ---------------------------- private field
[INFO] [stdout] 304 |         configs: Vec::new(),
[INFO] [stdout]     |         ------------------- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `local_pk` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `SensorPrototypeView` is private
[INFO] [stdout]    --> tests/sensor.rs:306:42
[INFO] [stdout]     |
[INFO] [stdout] 306 |     for request in &sensor_prototypes[1].configuration_requests {
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 306 |     for request in &sensor_prototypes[1].configuration_requests() {
[INFO] [stdout]     |                                                                ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configs` of struct `NewSensor` is private
[INFO] [stdout]    --> tests/sensor.rs:311:21
[INFO] [stdout]     |
[INFO] [stdout] 311 |         new_sensor2.configs.push(NewSensorConfig {
[INFO] [stdout]     |                     ^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configs` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 311 |         new_sensor2.configs().push(NewSensorConfig {
[INFO] [stdout]     |                            ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> tests/sensor.rs:313:13
[INFO] [stdout]     |
[INFO] [stdout] 313 |             value,
[INFO] [stdout]     |             ^^^^^ expected `ValRaw`, found `String`
[INFO] [stdout]     |
[INFO] [stdout] help: try wrapping the expression in `server::ValRaw::String`
[INFO] [stdout]     |
[INFO] [stdout] 313 |             value: server::ValRaw::String(value),
[INFO] [stdout]     |             ++++++++++++++++++++++++++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `id` of struct `SensorPrototypeView` is private
[INFO] [stdout]    --> tests/sensor.rs:318:44
[INFO] [stdout]     |
[INFO] [stdout] 318 |         prototype_id: sensor_prototypes[2].id,
[INFO] [stdout]     |                                            ^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `id` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 318 |         prototype_id: sensor_prototypes[2].id(),
[INFO] [stdout]     |                                              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewSensor` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/sensor.rs:317:27
[INFO] [stdout]     |
[INFO] [stdout] 317 |     let mut new_sensor3 = NewSensor {
[INFO] [stdout]     |                           ^^^^^^^^^
[INFO] [stdout] 318 |         prototype_id: sensor_prototypes[2].id,
[INFO] [stdout]     |         ------------------------------------- private field
[INFO] [stdout] 319 |         alias: "Sensor 3".to_owned(),
[INFO] [stdout]     |         ---------------------------- private field
[INFO] [stdout] 320 |         configs: Vec::new(),
[INFO] [stdout]     |         ------------------- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `local_pk` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `SensorPrototypeView` is private
[INFO] [stdout]    --> tests/sensor.rs:322:42
[INFO] [stdout]     |
[INFO] [stdout] 322 |     for request in &sensor_prototypes[2].configuration_requests {
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 322 |     for request in &sensor_prototypes[2].configuration_requests() {
[INFO] [stdout]     |                                                                ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configs` of struct `NewSensor` is private
[INFO] [stdout]    --> tests/sensor.rs:327:21
[INFO] [stdout]     |
[INFO] [stdout] 327 |         new_sensor3.configs.push(NewSensorConfig {
[INFO] [stdout]     |                     ^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configs` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 327 |         new_sensor3.configs().push(NewSensorConfig {
[INFO] [stdout]     |                            ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> tests/sensor.rs:329:13
[INFO] [stdout]     |
[INFO] [stdout] 329 |             value,
[INFO] [stdout]     |             ^^^^^ expected `ValRaw`, found `String`
[INFO] [stdout]     |
[INFO] [stdout] help: try wrapping the expression in `server::ValRaw::String`
[INFO] [stdout]     |
[INFO] [stdout] 329 |             value: server::ValRaw::String(value),
[INFO] [stdout]     |             ++++++++++++++++++++++++++++++     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `configuration_requests` of struct `TargetView` is private
[INFO] [stdout]    --> tests/sensor.rs:334:32
[INFO] [stdout]     |
[INFO] [stdout] 334 |     for request in &targets[0].configuration_requests {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `configuration_requests` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 334 |     for request in &targets[0].configuration_requests() {
[INFO] [stdout]     |                                                      ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot construct `NewCompiler` with struct literal syntax due to private fields
[INFO] [stdout]    --> tests/sensor.rs:348:9
[INFO] [stdout]     |
[INFO] [stdout] 348 |           NewCompiler {
[INFO] [stdout]     |           ^^^^^^^^^^^
[INFO] [stdout] 349 |               device_id,
[INFO] [stdout]     |               --------- private field
[INFO] [stdout] 350 |               target_id: targets[0].id(),
[INFO] [stdout]     |               -------------------------- private field
[INFO] [stdout] 351 |               device_configs: device_configs.clone(),
[INFO] [stdout]     |               -------------------------------------- private field
[INFO] [stdout] 352 | /             sensors: vec![
[INFO] [stdout] 353 | |                 new_sensor1.clone(),
[INFO] [stdout] 354 | |                 new_sensor2.clone(),
[INFO] [stdout] 355 | |                 new_sensor3.clone(),
[INFO] [stdout] 356 | |             ],
[INFO] [stdout]     | |_____________- private field
[INFO] [stdout]     |
[INFO] [stdout]     = note: ... and other private field `collection_id` that was not provided
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `SetColorRequest` has no field named `device_id`
[INFO] [stdout]    --> tests/sensor.rs:365:13
[INFO] [stdout]     |
[INFO] [stdout] 365 |             device_id,
[INFO] [stdout]     |             ^^^^^^^^^ `SetColorRequest` does not have this field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `compiler` on type `CompilationView`
[INFO] [stdout]    --> tests/sensor.rs:366:36
[INFO] [stdout]     |
[INFO] [stdout] 366 |             sensor_id: compilation.compiler.sensors[0].id,
[INFO] [stdout]     |                                    ^^^^^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `collections` of struct `OrganizationView` is private
[INFO] [stdout]    --> tests/sensor.rs:373:25
[INFO] [stdout]     |
[INFO] [stdout] 373 |     let color = orgs[0].collections[0].devices[0]
[INFO] [stdout]     |                         ^^^^^^^^^^^ private field
[INFO] [stdout]     |
[INFO] [stdout] help: a method `collections` also exists, call it with parentheses
[INFO] [stdout]     |
[INFO] [stdout] 373 |     let color = orgs[0].collections()[0].devices[0]
[INFO] [stdout]     |                                    ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `0` of struct `AuthToken` is private
[INFO] [stdout]    --> tests/sensor.rs:387:68
[INFO] [stdout]     |
[INFO] [stdout] 387 |                 .header("Authorization", format!("Basic {}", token.0))
[INFO] [stdout]     |                                                                    ^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `SetColorRequest` has no field named `device_id`
[INFO] [stdout]    --> tests/sensor.rs:392:25
[INFO] [stdout]     |
[INFO] [stdout] 392 |                         device_id: device_id1,
[INFO] [stdout]     |                         ^^^^^^^^^ `SetColorRequest` does not have this field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `compiler` on type `CompilationView`
[INFO] [stdout]    --> tests/sensor.rs:393:48
[INFO] [stdout]     |
[INFO] [stdout] 393 |                         sensor_id: compilation.compiler.sensors[0].id,
[INFO] [stdout]     |                                                ^^^^^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `0` of struct `AuthToken` is private
[INFO] [stdout]    --> tests/sensor.rs:409:74
[INFO] [stdout]     |
[INFO] [stdout] 409 |                 .header("Authorization", format!("Basic {}", other_token.0))
[INFO] [stdout]     |                                                                          ^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `SetColorRequest` has no field named `device_id`
[INFO] [stdout]    --> tests/sensor.rs:414:25
[INFO] [stdout]     |
[INFO] [stdout] 414 |                         device_id,
[INFO] [stdout]     |                         ^^^^^^^^^ `SetColorRequest` does not have this field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `compiler` on type `CompilationView`
[INFO] [stdout]    --> tests/sensor.rs:415:48
[INFO] [stdout]     |
[INFO] [stdout] 415 |                         sensor_id: compilation.compiler.sensors[0].id,
[INFO] [stdout]     |                                                ^^^^^^^^ unknown field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 62 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0063, E0308, E0560, E0609, E0616.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0063`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `server` (test "sensor") due to 63 previous errors
[INFO] running `Command { std: "docker" "inspect" "848d29692e84a05c18da6ab1d6a32dfe78675109d25ed386bc9aef5f4932bba0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "848d29692e84a05c18da6ab1d6a32dfe78675109d25ed386bc9aef5f4932bba0", kill_on_drop: false }`
[INFO] [stdout] 848d29692e84a05c18da6ab1d6a32dfe78675109d25ed386bc9aef5f4932bba0
